package org.skyui.controllers;

import org.skyui.beanmanagers.BeanRelationManager;
import org.skyui.beans.AbstractBean;
import org.skyui.jpa.JPAManager;
import org.skyui.views.BeansRelationTableView;


public class BeansRelationTableController extends AbstractBeansTableController {

	public BeansRelationTableController(BeanRelationManager beanManager,
			BeansRelationTableView view) {
		super(beanManager, view);
	}

	protected void removeAction(AbstractBean b) {
		JPAManager.removeManyToManyRelation(
				((BeanRelationManager) this.beanManager).getParentBean(), b);
	}
}
